######################################################################
# Bit serial Add ModelSim do file
# Stephen West, James Carroll
# BYU ECEn 620, Fall 2008
######################################################################
quit -sim

vcom BitSerialAdd.vhd
vsim BitSerialAdd
add wave *

force clk 1,0 10ns -r 20ns

#000000
#000001
force lsb_in 1,0 20ns
force a_in 0
force b_in 1,0 20ns 
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns

#0101010101
#1010101010
force lsb_in 1,0 20ns
force b_in 0,1 20ns -r 40ns
force a_in 1,0 20ns -r 40ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
noforce a_in
noforce b_in
force a_in 0
force b_in 0
run 20ns
run 20ns
run 20ns
run 20ns

noforce a_in
#00000001
#00000011
force lsb_in 1,0 20ns
force b_in 1,0 40ns
force a_in 1,0 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns
run 20ns

